//
//  shouYeTableViewCell.m
//  WWSideslipViewControllerSample
//
//  Created by 潘东 on 15/7/12.
//  Copyright (c) 2015年 wangwei. All rights reserved.
//

#import "shouYeTableViewCell.h"

@implementation shouYeTableViewCell

- (void)awakeFromNib {
    // Initialization code
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.bigShadow = [[UIView alloc] init];
        self.bigShadow.backgroundColor = [UIColor colorWithRed:0 green:0 blue:0 alpha:0.3];
        //self.bigShadow.alpha = 0.4;
        self.bigShadow.layer.cornerRadius = 4;
        self.bigShadow.layer.masksToBounds = YES;
        [self.contentView addSubview:self.bigShadow];
        
        self.bigImage = [[UIImageView alloc] init];
        self.bigImage.backgroundColor = [UIColor purpleColor];
        self.bigImage.layer.cornerRadius = 4;
        self.bigImage.layer.masksToBounds = YES;
        [self.contentView addSubview:self.bigImage];
        
        self.touMing = [[UIImageView alloc]init];
        self.touMing.image = [UIImage imageNamed:@"黑白 .png"];
        self.touMing.alpha = 0.9;
        self.touMing.layer.cornerRadius = 4;
        self.touMing.layer.masksToBounds = YES;
        [self.contentView addSubview:self.touMing];
        
        //self.lableShadow = [[UILabel alloc] init];
        //self.lableShadow.backgroundColor = [UIColor grayColor];
        //self.lableShadow.alpha = 0.8;
        //[self.bigImage addSubview:self.lableShadow];
        
        self.titeLable = [[UILabel alloc] init];
        //self.titeLable.backgroundColor = [UIColor whiteColor];
        //self.titeLable.alpha = 0.7;
        self.titeLable.font = [UIFont systemFontOfSize:15];
        self.titeLable.numberOfLines = 0;
        self.titeLable.textColor = [UIColor whiteColor];
        [self.touMing addSubview:self.titeLable];
        
        
        self.dzBackground = [[UIView alloc] init];
        self.dzBackground.backgroundColor = [UIColor grayColor];
        self.dzBackground.alpha = 0.4;
        self.dzBackground.layer.cornerRadius = 15;
        self.dzBackground.layer.masksToBounds = YES;

        
        [self.bigImage addSubview:self.dzBackground];
        //self.bigImage.backgroundColor = [UIColor grayColor];
        //self.bigImage.alpha = 0.7;
        
        self.xingXingimg = [[UIImageView alloc] init];
        [self.contentView addSubview:self.xingXingimg];
        
        self.dzLable = [[UILabel alloc] init];
        self.dzLable.font = [UIFont systemFontOfSize:13];
        self.dzLable.textColor = [UIColor whiteColor];
        [self.contentView addSubview:self.dzLable];
        
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    
    self.bigShadow.frame = CGRectMake(6.5, 6.5, self.contentView.frame.size.width - 5 - 5, self.contentView.frame.size.height - 5 - 5);
    self.bigImage.frame = CGRectMake(5, 5, self.bigShadow.frame.size.width, self.bigShadow.frame.size.height);
    self.touMing.frame = CGRectMake(5, 5/*self.bigImage.frame.origin.y + self.bigImage.frame.size.height / 2*/, self.bigImage.frame.size.width, self.bigImage.frame.size.height);
    self.lableShadow.frame = CGRectMake(1, self.bigImage.frame.size.height / 5 * 4 - 20 + 1, self.bigImage.frame.size.width / 3 * 2, 40);
    //self.titeLable.frame = CGRectMake(0, self.bigImage.frame.size.height / 5 * 4 - 20, self.bigImage.frame.size.width / 3 * 2, 40);
    self.titeLable.frame = CGRectMake(10, 135, self.bigImage.frame.size.width / 3 * 2, 40);
    
    
    self.dzBackground.frame = CGRectMake(self.bigImage.frame.size.width / 10 * 7, 25, 120, 30);
    self.xingXingimg.frame = CGRectMake(self.dzBackground.frame.origin.x + 5, self.dzBackground.frame.origin.y + 5, 20, 20);
    self.dzLable.frame = CGRectMake(self.xingXingimg.frame.origin.x + 35 + 10, self.xingXingimg.frame.origin.y, 60, 35);

    

}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
